var a = r(require("../../../../config/index")),
  e = r(require("../../../../config/page")),
  t = require("../../../../utils/jump"),
  i = require("@/utils/report");
function r(a) {
  return a && a.__esModule ? a : { default: a };
}
Component({
  properties: {
    orderInfo: { type: Object, default: {} },
    status: { type: Number, default: 0 },
    reserveTime: { type: String, default: "" },
    explainTime: { type: String, default: "" },
    come: { type: String, default: "1" },
  },
  data: {
    tabs: [
      {
        index: 0,
        name: "预约购票",
        pic: "".concat(a.default.CDN, "/index/tab-1.png"),
      },
      {
        index: 1,
        name: "展馆介绍",
        pic: "".concat(a.default.CDN, "/index/tab-2.png"),
      },
      {
        index: 2,
        name: "交通指南",
        pic: "".concat(a.default.CDN, "/index/tab-3.png"),
      },
      {
        index: 3,
        name: "讲解服务",
        pic: "".concat(a.default.CDN, "/index/tab-4.png"),
      },
    ],
  },
  methods: {
    onTab: function (a) {
      var r = a.currentTarget.dataset.index,
        n = this.data.come;
      (0, i.report)("fpage_icon_click", { iconid: r }),
        0 === r
          ? ((0, i.report)("ticket_show", { source: n }),
            (0, t.navigateTo)(
              "".concat(
                e.default.PAGE_ORDER_TRANSFER,
                "?url=plugin://order/index-page",
              ),
              {},
            ))
          : 1 === r
            ? (0, t.navigateTo)(e.default.PAGE_EXHIBITION_HALL, {})
            : 2 === r
              ? (0, t.navigateTo)(e.default.PAGE_TOUR_TRAFFIC, {})
              : 3 === r && (0, t.navigateTo)(e.default.PAGE_TOUR_EXPLAIN, {});
    },
    toReserve: function () {
      (0, i.report)("fpage_sug_click", { sugid: 1 }),
        (0, t.navigateTo)(
          "".concat(
            e.default.PAGE_ORDER_TRANSFER,
            "?url=plugin://order/index-page",
          ),
          {},
        );
    },
    toInfo: function () {
      var a = getApp();
      (a.globalData.tabBarParam.tab = 0),
        (a.globalData.tabBarParam.isFromTabBar = !0),
        (0, i.report)("fpage_sug_click", { sugid: 2 }),
        wx.switchTab({ url: "".concat(e.default.PAGE_APPRECIATION_INDEX) });
    },
    toOrder: function () {
      (0, i.report)("fpage_sug_click", { sugid: 3 }),
        (0, t.navigateTo)(
          "".concat(
            e.default.PAGE_ORDER_TRANSFER,
            "?url=plugin://order/order-page",
          ),
          {},
        );
    },
    toExplain: function () {
      (0, i.report)("fpage_sug_click", { sugid: 4 }),
        (0, t.navigateTo)(e.default.PAGE_TOUR_EXPLAIN, {});
    },
    toMap: function () {
      (0, i.report)("fpage_sug_click", { sugid: 5 }),
        (0, t.navigateTo)(e.default.PAGE_TOUR_SEARCH_INDOOR, {
          search: "必看",
        });
    },
    toList: function () {
      var a = getApp();
      (a.globalData.tabBarParam.tab = 0),
        (a.globalData.tabBarParam.isFromTabBar = !0),
        (0, i.report)("fpage_sug_click", { sugid: 6 }),
        (0, t.navigateTo)(e.default.PAGE_SILK, {});
    },
  },
});
